package com.example.campuslink.commen.db.search

import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import com.example.campuslink.commen.db.SearchDataConverter
import com.example.campuslink.model.SearchWordData

@Entity(tableName = "search_table")
@TypeConverters(SearchDataConverter::class)
data class SearchTable(
    @PrimaryKey
    var UserNumber: String = "",
    var schoolId: Int = 0,
    @TypeConverters(SearchDataConverter::class)
    var searchData: MutableList<SearchWordData> = mutableListOf()
) {
    @Ignore
    constructor() : this(
        UserNumber = "",
        schoolId = 0,
        searchData = mutableListOf()
    )

}
